<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .fa{
            width: 400px;
            height: 100px;
            background-color: pink;
        }
        .son{
            width: 200px;
            height: 20px;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div class="fa">
        <div class="son"></div>
    </div>
    <script>
        const fa=document.querySelector('.fa')
        const son=document.querySelector('.son')
        fa.addEventListener('click',function(e){
            alert('fa')
            
            e.stopPropagation()
        })
        son.addEventListener('click',function(){
            alert('son')
        })
        document.addEventListener('click',function(){
            alert('mom')
        })
    </script>

    
</body>
</html>